package com.bw.service.impl;

import com.bw.entity.User;
import com.bw.entity.Word;
import com.bw.mapper.UserMapper;
import com.bw.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User login(String name) {
        return userMapper.login(name);
    }

    @Override
    public List<Word> list(Integer id) {
        return userMapper.list(id);
    }

    @Override
    public User findUserById(Integer id) {

        return userMapper.findUserById(id);
    }

    @Override
    public List<Word> wlist(Map map) {
        return userMapper.wlist(map);
    }
}
